/* 全局样式设置 */
body {
    background-image: url('/img/backgroud_login.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

/* 登录容器样式 */
.login-container {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    width: 350px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.1) linear-gradient(to bottom right, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
    display: grid;
    grid-template-rows: auto 1fr auto;
    grid-gap: 20px;
    padding: 20px;
}

.login-container:hover {
    box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
}

h2 {
    text-align: center;
    color: #333;
    font-size: 24px;
    margin: 0;
}

/* 表单组样式 */
.form-group {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.form-group label {
    margin-bottom: 5px;
    color: #555;
    font-size: 14px;
}

/* 输入框样式优化 */
.form-group input {
    width: 100%;
    padding: 12px 2px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

/* 在账号输入框前添加用户图标 */
.form-group.user-icon::before {
    content: '\f007';
    font-family: 'Font Awesome 6 Free',serif;
    font-weight: 900;
    position: absolute;
    left: 35px;
    top: 2px;
    color: #999;
}

/* 在密码输入框前添加锁图标 */
.form-group.lock-icon::before {
    content: '\f023';
    font-family: 'Font Awesome 6 Free',serif;
    font-weight: 900;
    position: absolute;
    left: 35px;
    top: 2px;
    color: #999;
}

/* 输入框聚焦时的效果 */
.form-group input:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.2);
}

/* 输入框悬停时的效果 */
.form-group input:hover {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

/* 占位符文本样式优化 */
.form-group input::placeholder {
    color: #999;
    font-size: 13px;
}

/* 按钮样式优化 */
.btn {
    background: linear-gradient(to bottom, #5cb85c, #4cae4c);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: bold;
    text-align: center;
}

.btn:hover {
    background: linear-gradient(to bottom, #449d44, #398439);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.15);
}

.btn:active {
    box-shadow: inset 0 2px 0 rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* 页脚样式 */
.footer {
    text-align: center;
    margin-top: 20px;
}

.footer a {
    color: #007bff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.footer a:hover {
    text-decoration: underline;
}

/* 错误提示信息区域样式 */
.error-message {
    color: #ff0000;
    font-size: 13px;
    margin-top: 10px;
    text-align: center;
}

/* 响应式设计：小屏幕设备（手机） */
@media (max-width: 576px) {
    .login-container {
        width: 90%;
    }
}

/* 响应式设计：中等屏幕设备（平板电脑） */
@media (min-width: 576px) and (max-width: 992px) {
    .login-container {
        width: 60%;
    }
}